// JavaScript Document
var selectMenuID="";
var markID="";
var langtype = "Cn";
var oneMenuName = "";
var twoMenuName = "";

//oneMenuName = parent.parent.topFrame.indexDiv.innerHTML;

function showIndex(str){
    var o = parent.parent.topFrame.indexDiv;
	o.innerHTML = oneMenuName == "" ? oneMenuName + str : oneMenuName +"->" + str;
	twoMenuName = o.innerHTML;
}

function showSubIndex(str){
	parent.parent.topFrame.indexDiv.innerHTML = twoMenuName+"->"+str;
}

function showItem(menuID){
	currentMenuID="divFoldSub0_"+menuID+"_0";
	var obj=document.all(currentMenuID);
	if(currentMenuID==selectMenuID){
		closeMenu(obj);
	}else{
		if(selectMenuID!=""){
			if(document.all(selectMenuID).style.display!="none"){
				closeMenu(document.all(selectMenuID));
			}
			closeMenu(obj);
		}else{
			closeMenu(obj);
		}
	}
	selectMenuID=currentMenuID;
}

function closeMenu(obj){
	if(obj.style.display!="none"){
		obj.style.display = "none";
	}else{
		obj.style.display = "";
	}
}
function markSelect(obj){
if(markID==""){
document.all(obj).className='clSubLinks3';
}else{
document.all(markID).className='clSubLinks2';
document.all(obj).className='clSubLinks3';
}
markID=obj;

}